#define _CRT_SECURE_NO_WARNINGS

#include"heap.h"

int main()
{
	int arr[] = { 70, 56, 30, 25, 15, 10, 75 };

	HP hp;
	heapInit(&hp);

	for (int i = 0; i < sizeof(arr) / sizeof(arr[0]); i++)
	{
		heapPush(&hp, arr[i]);
	}


	heapPrint(&hp);
	heapPop(&hp);
	heapPrint(&hp);
	heapPop(&hp);
	heapPrint(&hp);
 	heapPop(&hp);
	heapPrint(&hp);
	heapPop(&hp);
	heapPrint(&hp);
	heapPop(&hp);
	heapPrint(&hp);	
	heapPop(&hp);
	heapPrint(&hp);	
	heapPop(&hp);
	return 0;
}